package com.aaa.tomcat;

import java.io.IOException;

/**
 * @author ：Teacher陈
 * @date ：Created in 2021/1/20 10:56
 * @description：测试servlet
 * @modified By：
 * @version: 1
 */
public class HelloServlet  extends  ServletAAA {
    @Override
    public void doGet(RequestAAA req, ResponseAAA resp) {
            this.doPost(req,resp);
    }

    @Override
    public void doPost(RequestAAA req, ResponseAAA resp) {
        System.out.println("HelloServlet  is  called");
        try {
            System.out.println("response is running ");
            resp.write(" I love you ");
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
